package com.weiweiqin.service;

import java.util.List;
import java.util.Map;

import com.weiweiqin.model.*;
import com.weiweiqin.vo.common.CartVO;
import com.weiweiqin.vo.common.Page;

public interface OrderService {

	void update(Order order);

	Order get(int id);

	List<Order> pageList(Page page, Map<String, Object> conditions);

	int totalCount(Map<String, Object> conditions);

	void saveByPrize(Order order, List<CartVO> goodsList, Prize prize);
	void saveByJF(Order order, List<CartVO> goodsList, Customer customer);
	void save(Order order);

	void del(int id);
	
	void addDp(Order order, String province, String city, String area,
			String street,Map<String,Object> conditions);
	
	void addDpShop(Order order, String province, String city, String area,
			String street,int goodsId,int num,String color,String size,Map<String,Object> conditions);

	List<OrderGoodsItem> getOrderGoodsItemListById(int id);

	List<CartVO> getCartVOList(int id);

	List<Order> getOrderListByGoodsId(int goodsId);
	
	List<Goods> getGoodsListByOrderId(int orderId);

	List<Order> export(Map<String, Object> conditions);
	
	Order getByOuterid(String outerid);
	
	int getWaitPayTotalCount(Map<String,Object> conditions);
	
	List<Order> getByGoodsTitle(String title);
	
	List<Order> getProcessed1();
	int getOrderCustomerCount(int customerId);

}